import request from '@/utils/request'

// 查询打印机认证情况管理列表
export function listPrinterCertification(query) {
  return request({
    url: '/nongjt/printerCertification/list',
    method: 'get',
    params: query
  })
}

// 查询打印机认证情况管理详细
export function getPrinterCertification(id) {
  return request({
    url: '/nongjt/printerCertification/' + id,
    method: 'get'
  })
}

// 新增打印机认证情况管理
export function addPrinterCertification(data) {
  return request({
    url: '/nongjt/printerCertification',
    method: 'post',
    data: data
  })
}

// 修改打印机认证情况管理
export function updatePrinterCertification(data) {
  return request({
    url: '/nongjt/printerCertification',
    method: 'put',
    data: data
  })
}

// 删除打印机认证情况管理
export function delPrinterCertification(ids) {
  return request({
    url: '/nongjt/printerCertification/' + ids,
    method: 'delete'
  })
}

// 导出打印机认证情况管理
export function exportPrinterCertification(query) {
  return request({
    url: '/nongjt/printerCertification/export',
    method: 'post',
    data: query
  })
}

// 校验序列号是否已认证
export function checkSerialNumberCertified(data) {
  return request({
    url: '/nongjt/printerCertification/checkSerialNumberCertified',
    method: 'get',
    params: data
  })
}

// 导入打印机认证情况数据
export function importPrinterCertification(data) {
  return request({
    url: '/nongjt/printerCertification/importData',
    method: 'post',
    data: data
  })
}

// 下载导入模板
export function downloadTemplate() {
  return request({
    url: '/nongjt/printerCertification/importTemplate',
    method: 'get'
  })
}
